<template>
  <div>
       <el-pagination
            layout="prev, pager, next"
            prev-text="上一页"
            :current-page="1"
            @current-change="currentChange"
           
            :hide-on-single-page="true"
            :total="total">
       </el-pagination>
  </div>
</template>

<script>
export default {
    props:['total'],
    methods:{
        currentChange(page) {
           
            let _start
            if(page > 1) {
                _start = page * 5 - 5
            }
            this.$emit('pageChange',_start)
            
        }
    }
}
</script>

<style scoped lang="less">
</style>